#shadowsocks of Docker
#
# VERSION 0.0.1

FROM ubuntu:15.04
MAINTAINER Johny <gradle@outlook.com>

RUN apt-get update && \
    apt-get install -y python-pip python-m2crypto libsodium13
RUN pip install shadowsocks

COPY shadowsocks.json /
ADD start.sh /start.sh
RUN chmod 755 /start.sh

ENV SS_SERVER_PORT 8388
ENV SS_PASSWORD woshiwuyanzu
ENV SS_METHOD chacha20
ENV SS_TIMEOUT 300

EXPOSE $SS_SERVER_PORT

CMD ["sh", "-c" , "/start.sh"]
